For ix86 programming, sometimes it is necessary to change from the real mode to the protection mode (for example, to access extended memory in the DOS era, or to write pilot code, of course, if you program in a 32-bit operating system, you won't be
A problem occurs when a program running properly on a 32-bit machine fails on a 64-bit machine. So I found this article about transplantation and took a good look.
Original post address: http://queniao.blog.51cto.com/10636/126564
In fact, there is
In the 32-bit environment, use C to design a 32-bit unsigned long integer summation function that is stored in two 32-bit unsigned integers.
function interface is defined as
void Add64 (unsigned int add1, unsigned int add2, unsigned int* psumhigh,
The integer range of 32-bit and 64-bit PHP and MySQL is 8 bytes, so the 32-bit int type occupies 32-bit/8-bit = 4 bytes, 64-bit int occupies 64-bit/8-bit = 8 bytes.
32-bit, 64-bit unsigned integer maximum value:
2 ^ 64-1 = 18446744073709551615
1. What we call a 64-bit CPU architecture refers to the 64-bit memory expansion technology, which is an extension of the 32CPU architecture and is compatible with the original architecture. It increases the bit width between CPU and memory by
Reading Tips: with the advent of a low-cost 64-bit platform, coupled with the falling price of memory and hard disk, it is undoubtedly a great effort for 32-bit programs to port 64-bit hardware, those scientific operations, databases, and programs
64-bit Visual Basic for Applications OverviewMicrosoft Visual Basic for Applications (VBA) is the Visual basic version that is included with Microsoft Office. In Microsoft Office 2010, VBA includes language features that enable VBA code to run
One byte has 8 bits, so the 32-bit int occupies 32-bit/8-bit = 4-byte, and 64-bit int uses 64-bit/8-bit = 8 bytes.
32-bit, 64-bit unsigned integer maximum value:
2^64-1 = 18446744073709551615
2^32-1 = 4294967295
32-bit, 64-bit signed integer
Network information:x86 refers to the architecture of a CPUNamed for Intel's 8086,286,386~586.Most of the CPUs developed by AMD are also based on the x86 architectureThe x86 architecture is characterized by a 32-bit CPU register, which is also
C + + simply defines the relationships between these basic data types, and does not define the word length that strictly defines them. On different platforms, depending on the compiler's implementation, their word lengths are shown in the following
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.